Stats
Get WRC-20 or WRC-721 token total supply by contract address.
Returns the current amount of token supply
?module=stats
&action=tokensupply
&contractaddress={contractAddressHash}
Parameters
Name | Description |
---|---|
Module* | A string with the name of the module to be invoked. |
Must be set to: stats | | Action* | A string with the name of the action to be invoked.
Must be set to: tokensupply | | Address* | A 160-bit code used for identifying contracts. |
Responses
Code 200 (successful)
{
"message": "OK",
"result": "21265524714464",
"status": "1"
}
Code 200 (error)
{
"message": "Invalid contract address format",
"result": null,
"status": "0"
}
Get total supply in Wei from exchange.
Returns the wyzth supply in Wei from an exchange
?module=stats
&action=wyzsupplyexchange
Parameters
Name | Description |
---|---|
Module* | A string with the name of the module to be invoked. |
Must be set to: stats | | Action* | A string with the name of the action to be invoked.
Must be set to: wyzsupplyexchange |
Responses
Code 200 (successful)
{
"message": "OK",
"result": "101959776311500000000000000",
"status": "1"
}
Get total supply in Wei from DB.
?module=stats
&action=wyzsupply
Name | Description |
---|---|
Module* | A string with the name of the module to be invoked. |
Must be set to: stats | | Action* | A string with the name of the action to be invoked.
Must be set to: wyzsupply |
Responses
Code 200 (successful)
{
"message": "OK",
"result": "101959776311500000000000000",
"status": "1"
}
Get total coin supply from DB minus burnt number.
?module=stats
&action=coinsupply
Parameters
Name | Description |
---|---|
Module* | A string with the name of the module to be invoked. |
Must be set to: stats | | Action* | A string with the name of the action to be invoked.
Must be set to: coinsupply |
Get latest price of native coin in USD and BTC.
?module=stats
&action=coinprice
Parameters
Name | Description |
---|---|
Module* | A string with the name of the module to be invoked. |
Must be set to: stats | | Action* | A string with the name of the action to be invoked.
Must be set to: coinprice |
Responses
Code 200 (successful)
{
"message": "OK",
"result": {
"coin_btc": "0.03246",
"coin_btc_timestamp": "1537212510",
"coin_usd": "204",
"coin_usd_timestamp": "1537212513"
},
"status": "1"
}
Gets total transaction fees in Wei paid by users to validators per day.
?module=stats
&action=totalfees&date={date}
Parameters
Name | Description |
---|---|
Module* | A string with the name of the module to be invoked. |
Must be set to: stats | | Action* | A string with the name of the action to be invoked.
Must be set to: totalfees | | date* | day in ISO 8601 format (yyyy-mm-dd) |